package com.cn.serverline.lineicp.workshopPlan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.EqualsAndHashCode;
import lombok.Data;
import java.sql.Timestamp;

/**
 * 周总装排产下发
 *
 * @author 田江余
 * @since 2024-08-10
 */
@TableName("PLAN_LINE_AUTOMATIC")
@Data
@EqualsAndHashCode
public class PlanLineAutomatic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ChineseDescription("主键")
    @TableField("ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 周总批次拆分ID
     */
    @ChineseDescription("周总批次拆分ID")
    @TableField("PLAN_LINE_ASSEMBLE_BATCH_SPLIT")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long planLineAssembleBatchSplit;

    /**
     * 工艺工序ID
     */
    @ChineseDescription("工艺工序ID")
    @TableField("PROC_PROCESS_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long procProcessId;

    /**
     * 当前工序ID的下一个工序ID
     */
    @ChineseDescription("当前工序ID的下一个工序ID")
    @TableField("PROC_PROCESS_IDS")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long procProcessIds;

    /**
     * 产品构型ID
     */
    @ChineseDescription("产品构型ID")
    @TableField("PROD_CONFIGURATION_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long prodConfigurationId;

    /**
     * 工艺路线ID
     */
    @ChineseDescription("工艺路线ID")
    @TableField("PROC_PROCESS_LINE_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long procProcessLineId;

    /**
     * 操作员ID
     */
    @ChineseDescription("操作员ID")
    @TableField("OPERATOR_USER_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long operatorUserId;

    /**
     * 任务开始时间
     */
    @ChineseDescription("任务开始时间")
    @TableField("TASK_START_TIME")
    private Timestamp taskStartTime;

    /**
     * 任务结束时间
     */
    @ChineseDescription("任务结束时间")
    @TableField("TASK_END_TIME")
    private Timestamp taskEndTime;

    /**
     * 小批次号
     */
    @ChineseDescription("小批次号")
    @TableField("SMALL_BATCH_NUMBER")
    private String smallBatchNumber;

    /**
     * 批次数量
     */
    @ChineseDescription("批次数量")
    @TableField("PLAN_QUANTITY")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long planQuantity;

    /**
     * 工位ID
     */
    @ChineseDescription("工位ID")
    @TableField("PROD_STATION_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long prodStationId;

    /**
     * 任务状态：挂起 1/进行中 2/完成 3/异常上报 4
     */
    @ChineseDescription("任务状态：挂起 1/进行中 2/完成 3/异常上报 4")
    @TableField("STATER_NUMBER")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long staterNumber;

    /**
     * 执行工序
     */
    @ChineseDescription("执行工序")
    @TableField("EXECUTE_PROCESS")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long executeProcess;

    /**
     * 排产结果下发状态
     */
    @ChineseDescription("排产结果下发状态")
    @TableField("ISSUANCE_STATUS")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long issuanceStatus;

    /**
     * 乐观锁
     */
    @ChineseDescription("乐观锁")
    @TableField("VERSION")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;

    /**
     * 创建人
     */
    @ChineseDescription("创建人")
    @TableField("CREATE_USER")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createUser;

    /**
     * 创建时间
     */
    @ChineseDescription("创建时间")
    @TableField("CREATE_TIME")
    private Timestamp createTime;

    /**
     * 最后修改人
     */
    @ChineseDescription("最后修改人")
    @TableField("UPDATE_USER")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long updateUser;

    /**
     * 最后修改时间
     */
    @ChineseDescription("最后修改时间")
    @TableField("UPDATE_TIME")
    private Timestamp updateTime;

    /**
     * 备注
     */
    @ChineseDescription("备注")
    @TableField("REMARK")
    private String remark;
}
